@layout("/common/_container.html"){
<style>
    .fr{
    float: right;
    margin-right: 5px;
}
td input{
    width: 100%
}
.form-ahead{
   overflow: hidden;
   margin-bottom: 5px;
}
.head-title-h{
    text-align: center;
    margin-bottom: 10px;
}
.RecYear-div{
    float:right
}
.form-group-block{
    padding: 5px;
    border: 1px solid #ccc
    }
.fornm-titlelable1{
    margin-left: 300px;
}
li{
    list-style: none;
}
.help-block{
    color:#ca3331
}
tr.lineborder td:nth-child(2),tr.lineborder td:nth-child(13),tr.lineborder td:nth-child(14),tr.lineborder td:nth-child(15){
    border-left: 1px solid #99999969;
}
tr.lineborder td:nth-child(6){
    border-right: 1px solid #99999969;
}
tr.lineborder2 td:nth-child(2),tr.lineborder2 td:nth-child(3),tr.lineborder2 td:nth-child(5),tr.lineborder2 td:nth-child(9),tr.lineborder2 td:nth-child(11){
    border-left: 1px solid #99999969;
}
</style>
<div class="row">
    <div class="col-sm-12">
        <div class="head-title-h">
            <h2>工业企业行业用水情况年报表</h2>
        </div>
        <form class="myform" action="" id="form3">
            <!-- 表头 -->
            <div class="form-ahead">
                <div class="col-sm-4">
                    <label class="col-sm-12 col-form-label" for="UnitHead">填表单位名称（盖章）：</label>
                </div>
                <div class="col-sm-2 RecYear-div">
                    <label for="RecYear" class="col-sm-4 col-form-label" title="必填项"><i style="color:red">*</i>年份：</label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control  col-sm-2" name="RecYear" id="RecYear" title=""
                            placeholder="">
                    </div>
                </div>
            </div>
            <form class="" action="">
                <div class="form-group row form-group-block">
                    <div class="col-sm-12">
                        <!-- table1 -->
                        <table class="table">
                            <thead>
                                <!-- <label for="" class="col-sm-4 col-form-label fornm-titlelable1"></label>
                                <label for="" class="col-sm-4 col-form-label fornm-titlelable2"></label> -->
                                <tr>
                                    <th scope="col"></th>
                                    <th scope="col" style="border-left:1px solid #99999969"></th>
                                    <th scope="col"></th>
                                    <th scope="col" >工业取水量（㎥）</th>
                                    <th scope="col"></th>
                                    <th scope="col" style="border-right:1px solid #99999969"></th>
                                    <th scope="col"></th>
                                    <th scope="col"></th>
                                    <th scope="col">重复利用水量（㎥）</th>
                                    <th scope="col"></th>
                                    <th scope="col"></th>
                                    <th scope="col" ></th>
                                    <th scope="col" style="border-left:1px solid #99999969"></th>
                                    <th scope="col"></th>
                                    <th scope="col"></th>
                                </tr>
                                <tr>
                                    <th scope="col">项目</th>
                                    <th scope="col"title="必填项" style="border-left:1px solid #99999969"><i style="color:red">*</i>合计</th>
                                    <th scope="col"  >间接冷却水</th>
                                    <th scope="col">工艺取水</th>
                                    <th scope="col">锅炉取水</th>
                                    <th scope="col"  style="border-right:1px solid #99999969">生活取水</th>
                                    <th scope="col"title="必填项"><i style="color:red">*</i>合计</th>
                                    <th scope="col">间接冷却循环水</th>
                                    <th scope="col">工艺水回用量</th>
                                    <th scope="col">锅炉冷凝水回用量</th>
                                    <th scope="col">非常规水利用量</th>
                                    <th scope="col">其他</th>
                                    <th scope="col"title="必填项" style="border-left:1px solid #99999969"><i style="color:red">*</i>工业用水重复利用率%</th>
                                    <th scope="col"title="必填项"style="border-left:1px solid #99999969"><i style="color:red">*</i>工业总产值（万元）</th>
                                    <th scope="col"title="必填项"style="border-left:1px solid #99999969"><i style="color:red">*</i>万元产值取水量（m³/万元）</th>
                                </tr>
                                <tr>
                                    <th scope="col"></th>
                                    <th scope="col" style="border-left:1px solid #99999969">1</th>
                                    <th scope="col" >2</th>
                                    <th scope="col">3</th>
                                    <th scope="col">4</th>
                                    <th scope="col"  style="border-right:1px solid #99999969">5</th>
                                    <th scope="col">6</th>
                                    <th scope="col">7</th>
                                    <th scope="col">8</th>
                                    <th scope="col">9</th>
                                    <th scope="col">10</th>
                                    <th scope="col">11</th>
                                    <th scope="col"style="border-left:1px solid #99999969">12</th>
                                    <th scope="col"style="border-left:1px solid #99999969">13</th>
                                    <th scope="col"style="border-left:1px solid #99999969">14</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr class="totalcount lineborder">
                                    <th scope="row"title="必填项"><i style="color:red">*</i>合计</th>
                                    <td  style="background-color:#9999991a"><input name="IndustrySum"></td>
                                    <td><input name="CoolWater"></td>
                                    <td><input name="TechWater"></td>
                                    <td><input name="BoilerWater"></td>
                                    <td><input name="liveWater"></td>
                                    <td style="background-color:#9999991a"><input name="RecycleSum"></td>
                                    <td><input name="CoolRecycleWater"></td>
                                    <td><input name="TechRecycleWater"></td>
                                    <td><input name="BoilerRecycleWater"></td>
                                    <td><input name="UnusuaeWater"></td>
                                    <td><input name="OtherWater"></td>
                                    <td style="background-color:#9999991a"><input name="RecycleUseRate"></td>
                                    <td style="background-color:#9999991a"><input name="IndSumValue"></td>
                                    <td style="background-color:#9999991a"><input name="WaterIntake"></td>
                                </tr>
                                <tr class="totalcount lineborder">
                                    <th scope="row">市政供水</th>
                                    <td><input name="IndustrySum"></td>
                                    <td><input name="CoolWater"></td>
                                    <td><input name="TechWater"></td>
                                    <td><input name="BoilerWater"></td>
                                    <td><input name="liveWater"></td>
                                    <td><input name="RecycleSum"></td>
                                    <td><input name="CoolRecycleWater"></td>
                                    <td><input name="TechRecycleWater"></td>
                                    <td><input name="BoilerRecycleWater"></td>
                                    <td><input name="UnusuaeWater"></td>
                                    <td><input name="OtherWater"></td>
                                    <td><input name="RecycleUseRate"></td>
                                    <td><input name="IndSumValue"></td>
                                    <td><input name="WaterIntake"></td>
                                </tr>
                                <tr class="totalcount lineborder">
                                    <th scope="row">地表水</th>
                                    <td><input name="IndustrySum"></td>
                                    <td><input name="CoolWater"></td>
                                    <td><input name="TechWater"></td>
                                    <td><input name="BoilerWater"></td>
                                    <td><input name="liveWater"></td>
                                    <td><input name="RecycleSum"></td>
                                    <td><input name="CoolRecycleWater"></td>
                                    <td><input name="TechRecycleWater"></td>
                                    <td><input name="BoilerRecycleWater"></td>
                                    <td><input name="UnusuaeWater"></td>
                                    <td><input name="OtherWater"></td>
                                    <td><input name="RecycleUseRate"></td>
                                    <td><input name="IndSumValue"></td>
                                    <td><input name="WaterIntake"></td>
                                </tr>
                                <tr class="totalcount lineborder">

                                    <th scope="row">地下水</th>
                                    <td><input name="IndustrySum"></td>
                                    <td><input name="CoolWater"></td>
                                    <td><input name="TechWater"></td>
                                    <td><input name="BoilerWater"></td>
                                    <td><input name="liveWater"></td>
                                    <td><input name="RecycleSum"></td>
                                    <td><input name="CoolRecycleWater"></td>
                                    <td><input name="TechRecycleWater"></td>
                                    <td><input name="BoilerRecycleWater"></td>
                                    <td><input name="UnusuaeWater"></td>
                                    <td><input name="OtherWater"></td>
                                    <td><input name="RecycleUseRate"></td>
                                    <td><input name="IndSumValue"></td>
                                    <td><input name="WaterIntake"></td>
                                </tr>
                                <br>
                            </tbody>
                        </table>
                        <!-- table2 -->
                        <table class="table">
                            <thead>
                                <tr>
                                    <th scope="col">项目</th>
                                    <th scope="col"title="必填项" style="border-left:1px solid #99999969"><i style="color:red">*</i>主要产品名称</th>
                                    <th scope="col"title="必填项"style="border-left:1px solid #99999969"><i style="color:red">*</i>本年产品产量</th>
                                    <th scope="col" ></th>
                                    <th scope="col" style="border-left:1px solid #99999969"></th>
                                    
                                    <th scope="col"title="必填项"><i style="color:red">*</i>本年取水量（㎥）</th>
                                    <th scope="col"></th>
                                    <th scope="col"></th>
                                    <th scope="col"title="必填项" style="border-left:1px solid #99999969"><i style="color:red">*</i>产品单位</th>
                                    <th scope="col"></th>
                                    <th scope="col"style="border-left:1px solid #99999969">用水器具（件、套）</th>
                                    <th scope="col"></th>
                                </tr>
                                <tr>
                                    <th scope="col"></th>
                                    <th scope="col" style="border-left:1px solid #99999969"></th>
                                    <th scope="col" style="border-left:1px solid #99999969"></th>
                                    <th scope="col"></th>
                                    <th scope="col" style="border-left:1px solid #99999969">合计</th>
                                    
                                    <th scope="col">市政供水</th>
                                    <th scope="col">自备水</th>
                                    <th scope="col"></th>
                                   
                                    <th scope="col"style="border-left:1px solid #99999969">定额</th>
                                    <th scope="col">取水量</th>
                                    <th scope="col"title="必填项"style="border-left:1px solid #99999969"><i style="color:red">*</i>节水器具</th>
                                    <th scope="col">非节水器具</th>
                                </tr>
                                <tr>
                                    <th scope="col"></th>
                                    <th scope="col"style="border-left:1px solid #99999969"></th>
                                    <th scope="col"style="border-left:1px solid #99999969"></th>
                                    <th scope="col"></th>
                                    <th scope="col"style="border-left:1px solid #99999969"></th>
                                    <th scope="col"></th>
                                    <th scope="col">地表水</th>
                                    <th scope="col">地下水</th>
                                    <th scope="col"style="border-left:1px solid #99999969">（㎥/单位）</th>
                                    <th scope="col"></th>
                                    <th scope="col"style="border-left:1px solid #99999969"></th>
                                    <th scope="col"></th>
                                </tr>
                                <tr>
                                    <th scope="col"></th>
                                    <th scope="col"style="border-left:1px solid #99999969">15</th>
                                    <th scope="col"style="border-left:1px solid #99999969">16</th>
                                    <th scope="col">17(单位)</th>
                                    <th scope="col"style="border-left:1px solid #99999969">18</th>
                                    <th scope="col">19</th>
                                    <th scope="col">20</th>
                                    <th scope="col">21</th>
                                    <th scope="col"style="border-left:1px solid #99999969">22</th>
                                    <th scope="col">23</th>
                                    <th scope="col"style="border-left:1px solid #99999969">24</th>
                                    <th scope="col">25</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr class="totalcount lineborder2">
                                    <th scope="row"title="必填项"><i style="color:red">*</i>合计</th>
                                    <td  style="background-color:#9999991a"><input name="Product" title="" placeholder=""></td>
                                    <td  style="background-color:#9999991a"><input name="Output"></td>
                                    <td  style="background-color:#9999991a"><input name="UnitName"></td>
                                    <td  style="background-color:#9999991a"><input name="WaterGetSum"></td>
                                    <td  style="background-color:#9999991a"><input name="TrapWater"></td>
                                    <td  style="background-color:#9999991a"><input name="SurfaceWater"></td>
                                    <td  style="background-color:#9999991a"><input name="GroundWater"></td>
                                    <td  style="background-color:#9999991a"><input name="QuotaWater"></td>
                                    <td  style="background-color:#9999991a"><input name="UserWater"></td>
                                    <td  style="background-color:#9999991a"><input name="WSUtensil"></td>
                                    <td><input name="Utensil"></td>

                                </tr>
                                <tr class="totalcount lineborder2">
                                    <th scope="row">市政供水</th>
                                    <td><input name="Product"></td>
                                    <td><input name="Output" title="填写产品产量数量" placeholder="填写产品产量数量"></td>
                                    <td><input name="UnitName" title="填写产品产量单位（例如：件、吨、台等等）" placeholder="填写产品产量单位（例如：件、吨、台等等）"></td>
                                    <td><input name="WaterGetSum"></td>
                                    <td><input name="TrapWater"></td>
                                    <td><input name="SurfaceWater"></td>
                                    <td><input name="GroundWater"></td>
                                    <td><input name="QuotaWater"></td>
                                    <td><input name="UserWater"></td>
                                    <td><input name="WSUtensil"></td>
                                    <td><input name="Utensil"></td>
                                </tr>
                                <tr class="totalcount lineborder2">
                                    <th scope="row">地表水</th>
                                    <td><input name="Product"></td>
                                    <td><input name="Output"></td>
                                    <td><input name="UnitName"></td>
                                    <td><input name="WaterGetSum"></td>
                                    <td><input name="TrapWater"></td>
                                    <td><input name="SurfaceWater"></td>
                                    <td><input name="GroundWater"></td>
                                    <td><input name="QuotaWater"></td>
                                    <td><input name="UserWater"></td>
                                    <td><input name="WSUtensil"></td>
                                    <td><input name="Utensil"></td>
                                </tr>
                                <tr class="totalcount lineborder2">
                                    <th scope="row">地下水</th>
                                    <td><input name="Product"></td>
                                    <td><input name="Output"></td>
                                    <td><input name="UnitName"></td>
                                    <td><input name="WaterGetSum"></td>
                                    <td><input name="TrapWater"></td>
                                    <td><input name="SurfaceWater"></td>
                                    <td><input name="GroundWater"></td>
                                    <td><input name="QuotaWater"></td>
                                    <td><input name="UserWater"></td>
                                    <td><input name="WSUtensil"></td>
                                    <td><input name="Utensil"></td>
                                </tr>
                                <br>
                            </tbody>
                        </table>
                        <!-- table3 -->
                        <table class="table">
                            <thead>
                                <tr>
                                    <th scope="col"></th>
                                    <th scope="col"></th>
                                    <th scope="col">节水技术措施项目完成情况</th>
                                    <th scope="col"></th>
                                    <th scope="col">其他需要说明的情况</th>
                                </tr>
                                <tr>
                                    <th scope="col">序号</th>
                                    <th scope="col">项目名称</th>
                                    <th scope="col">投资（万元）</th>
                                    <th scope="col">节水效果（万㎥/年）</th>
                                </tr>

                            </thead>
                            <tbody>
                                <tr>
                                    <th scope="col">1</th>
                                    <th scope="col"><input name="" placeholder=""></th>
                                    <th scope="col"><input name=""></th>
                                    <th scope="col"><input name=""></th>
                                    <th scope="col"><input name=""></th>
                                </tr>
                                <tr>
                                    <th scope="col">2</th>
                                    <th scope="col"><input name=""></th>
                                    <th scope="col"><input name=""></th>
                                    <th scope="col"><input name=""></th>
                                </tr>
                                <tr>
                                    <th scope="col">3</th>
                                    <th scope="col"><input name=""></th>
                                    <th scope="col"><input name=""></th>
                                    <th scope="col"><input name=""></th>
                                    <th scope="col">企业完成水平衡测试的时间</th>
                                    <th scope="col"><input name=""></th>
                                </tr>

                                <br>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="col-sm-3">
                    <label class="col-sm-4 col-form-label" for="UnitHead" title="必填项"><i style="color:red">*</i>单位负责人：</label>
                    <div class="col-sm-8">
                        <input type="text" name="UnitHead" id="UnitHead" value="">
                    </div>
                </div>
                <div class="col-sm-3">
                    <label class="col-sm-4 col-form-label" for="Operater"  title="可在“个人资料”进行修改">填表人：</label>
                    <div class="col-sm-8">
                        <input type="text" name="Operater" id="Operater" value="${Operater}" title="可在“个人资料”进行修改" placeholder=""
                            disabled="disabled">
                    </div>
                </div>
                <div class="col-sm-3">
                    <label class="col-sm-4 col-form-label" for="Phone"  title="可在“个人资料”进行修改">联系电话：</label>
                    <div class="col-sm-8">
                        <input type="text" name="phone" id="Phone" value="${phone}" value="" title="可在“个人资料”进行修改"
                            placeholder="" disabled="disabled">
                    </div>
                </div>
                <div class="col-sm-3">
                    <label class="col-sm-4 col-form-label" for="Ts">报出日期：</label>
                    <div class="col-sm-8">
                        <input type="text" name="ts" id="Ts" value="${Ts}" placeholder="" disabled="disabled">
                    </div>
                </div>
            </form>
            </br>
            </br>
            </br>
            </br>
            <button type="button" id="saveform" class="btn btn-primary fr">保存</button>
            <button type="button" id="exportform" class="btn btn-primary fr">导出</button>
            <button type="button" id="preview" class="btn btn-primary fr">预览</button>
            <a id='export_a' href=''></a>
    </div>
    <!-- 说明文本 -->
    <div>

        <ul>
            <li><strong>说明：</strong></li>
            <li>1.统计范围：年用水量超过6万立方米的已有国家和省标准主要工业行业（农副食品加工业，食品制造业，酒、饮料和精制茶制造业，烟草制品业，纺织业，纺织服装、服饰业，皮革、毛皮、羽毛及其制品和制鞋业，木材加工和木、竹、藤、棕草制品业，家具制造业，造纸和纸制品业，印刷和记录媒介复制业，文教、工美、体育和娱乐用品制造业，石油、煤炭及其他燃料加工业，化学原料和化学制品制造业，染整产品、医药制造业，化学纤维制造业，橡胶和塑料制品业，非金属矿物制品业，黑色金属冶炼和压延加工业，有色金属冶炼和压延加工业，金属制品业，通用设备制造业，专用设备制造业，汽车制造业，摩托车制造业，自行车制造业，电器机械和器材制造业，计算机、通信和其他电子设备制造业，仪器仪表制造业，日用杂品制造业，电力生产，燃气生产和供应业企业填报。</li>
            <li>2.报送单位：已有国家标准主要工业行业企业及各区节水管理部门。</li>
            <li>3.报送时间及方式：每年1月30日前上报所属区节水管理部门纸质报表，所属区节水管理部门每年2月10日前汇总报送市节水办。</li>
            <li> 4.单位产品取水量=产品年取水量/产品年产量。其中：产品年取水量指产品生产取用的新水量，不包括再生水利用量。</li>
            <li> 5.工业用水重复利用率：在一定的计量时间（一般为1年）内，生产过程中使用的重复利用水量与用水总量的比值。年工业生产重复利用水量/（年工业用水新水取水量+年工业生产重复利用水量）的百分比。</li>
        </ul>

    </div>
</div>
<script>
      $(document).keydown(function(event){
          switch(event.keyCode){
             case 13:return false; 
             }
      });
    //saveform
    //定义serializeObject方法，序列化表单
    $.fn.serializeObject = function () {
        var o = {};
        var a = this.serializeArray();
        $.each(a, function () {
            if (o[this.name]) {
                if (!o[this.name].push) {
                    o[this.name] = [o[this.name]];
                }
                o[this.name].push(this.value || '');
            } else {
                o[this.name] = this.value || '';
            }
        });
        return o;
    };

    //表单验证及提交
    $(function () {
        $("#form3").bootstrapValidator({
            live: 'enabled', //验证时机，enabled是内容有变化就验证（默认），disabled和submitted是提交再验证
            excluded: [':disabled', ':hidden', ':not(:visible)'], //排除无需验证的控件，比如被禁用的或者被隐藏的
            fields: {
                RecYear: {
                    validators: {
                        notEmpty: { //检测非空,radio也可用
                            message: '必填项'
                        },
                        regexp: { //正则验证
                            regexp: /^\d{4}$/,
                            message: '请输入四位纯数字'
                        }
                    }
                },
                Management:{
                    validators: {
                    }
                },
                UnitName:{
                    notEmpty: { //检测非空,radio也可用
                            message: '必填项'
                        },
                },
                PrjPlace:{
                    notEmpty: { //检测非空,radio也可用
                            message: '必填项'
                        },
                },
                StarTime:{
                    notEmpty: { //检测非空,radio也可用
                            message: '必填项'
                        },
                },
                EndTime:{
                    notEmpty: { //检测非空,radio也可用
                            message: '必填项'
                        },
                },
                SumFund:{
                    notEmpty: { //检测非空,radio也可用
                            message: '必填项'
                        },
                },
                OtherScale:{
                    notEmpty: { //检测非空,radio也可用
                            message: '必填项'
                        },
                },
                SumSave:{
                    notEmpty: { //检测非空,radio也可用
                            message: '必填项'
                        },
                }
            }
        })
        //exportform 导出
        $(document).on("click", "#exportform", function () {
            $("#export_a").attr("href", Feng.ctxPath + '/indenteruwy/dlExcell')
            $("#export_a")[0].click()
        })
        //点击提交
        $("#saveform").click(function () { //非submit按钮点击后进行验证，如果是submit则无需此句直接验证
            $("#form3").bootstrapValidator('validate'); //提交验证
            if ($("#form3").data('bootstrapValidator').isValid()) { //获取验证结果，如果成功，执行下面代码

                var form = $(".myform").serializeObject();
                console.log(form)
                var formcorrect = []
                formlenth = [1, 2, 3, 4]
                for (var i in formlenth) {
                    formcorrect.push({
                        BoilerRecycleWater: form["BoilerRecycleWater"][i],
                        BoilerWater: form["BoilerWater"][i],
                        CoolRecycleWater: form["CoolRecycleWater"][i],
                        CoolWater: form["CoolWater"][i],
                        GroundWater: form["GroundWater"][i],
                        IndSumValue: form["IndSumValue"][i],
                        IndustrySum: form["IndustrySum"][i],
                        OtherWater: form["OtherWater"][i],
                        Output: form["Output"][i],
                        Product: form["Product"][i],
                        QuotaWater: form["QuotaWater"][i],
                        RecycleSum: form["RecycleSum"][i],
                        RecycleUseRate: form["RecycleUseRate"][i],
                        SurfaceWater: form["SurfaceWater"][i],
                        TechRecycleWater: form["TechRecycleWater"][i],
                        TechWater: form["TechWater"][i],
                        TrapWater: form["TrapWater"][i],
                        UnitHead: form["UnitHead"],
                        RecYear: form["RecYear"],
                        UnitName: form["UnitName"][i],
                        UnusuaeWater: form["UnusuaeWater"][i],
                        UserWater: form["UserWater"][i],
                        Utensil: form["Utensil"][i],
                        WSUtensil: form["WSUtensil"][i],
                        WaterGetSum: form["WaterGetSum"][i],
                        WaterIntake: form["WaterIntake"][i],
                        liveWater: form["liveWater"][i],
                    })
                }
                console.log(formcorrect)
                var ajax = new $ax(Feng.ctxPath + '/indenteruwy/pushMsg', function (data) {
                        if (data.code == 200) {
                            Feng.success(data.msg);
                        } else {
                            Feng.error(data.msg);
                        }
                }, function (data) {
                    Feng.error("请求失败!");
                });
                ajax.set("json", JSON.stringify(formcorrect));
                ajax.start();
            }  else{
            //解决table校验提示重复问题
            Feng.error("表单有漏填或填写格式错误");//获取验证结果，失败
        }
        });
    })
    $(document).on("click", "#preview", function () {
        window.open(Feng.ctxPath + '/indenteruwy/showPDF', "_blank",
            "top=200,left=200,height=600,width=800,status=yes,toolbar=1,menubar=no,location=no,scrollbars=yes"
        );
    })
</script>
<script src="${ctxPath}/static/modular/fsjs/indenteruwy/indenteruwy.js"></script>
<script>
    //返回的数据渲染
    var ajax = new $ax(Feng.ctxPath + '/indenteruwy/getTemp', function (data) {
        // Feng.success("请求成功!");
        console.log(data)

        var returnObjArr = []
        for (var i in data[0]) {
            returnObjArr.push(i) //首字母是小写
        }
        for (var i in returnObjArr) {
            var currentObj = returnObjArr[i]
            //首字母小写转大写
            currentObj_A = currentObj.replace(currentObj[0], currentObj[0].toUpperCase());

            for (var j in data) { //显示值
                $($('input[name=' + currentObj_A + ']')[j]).attr('value', data[j][currentObj]);
            }

        }
        $("#RecYear").attr("value", data[0].recYear)
        $("#Reporter").attr("value", data[0].reporter)
    }, function (data) {
        // Feng.error("请求失败!");
    });
    ajax.start();

     //计算比率
    $($("input[name=RecycleUseRate]")[0]).attr("disabled","disabled")
    // $($("input[name=RecycleUseRate]")[0]).attr("placeholder","系统计算")
     $(document).on("change","input[name=IndustrySum],input[name=RecycleSum]",function(){
         
         var c1=parseInt($("input[name=IndustrySum]:nth-child(1)").val())
         var h1=parseInt($("input[name=RecycleSum]:nth-child(1)").val())

        rate=h1/(c1+h1)
         function toPercent(point){
            if (point==0) {
                return 0;
            }
            var str=Number(point*100).toFixed(1);
            str+="%";
            return str;
        }
        
        $($("input[name=RecycleUseRate]")[0]).attr("value",toPercent(rate))
    })
    
</script>
@}